package com.oocl.crm.util;

import com.oocl.crm.customer.Customer;

public class Add {
	public static void addOrUpdateInformation(Customer customer,String[] inf)
	{
		switch (inf[0]) {
		case "name":
			customer.setName(inf[1]);
			break;
		case "sex":
			customer.setSex(inf[1]);
			break;
		case "birthday":
			customer.setBirthday(inf[1]);
			break;
		case "address":
			customer.setAddress(inf[1]);
			break;
		case "call":
			customer.setCall(inf[1]);
			break;
		default:
			break;
		}
	}
}
